<template>
    <div>
        <el-dialog title="联系我们" :visible.sync="contactDialogVisible" width="25%" @close="closeDialog">
            <div class="ub main-center cross-center">
                <div class="ub">
                    <el-image :src="require('@/assets/images/contact.png')"></el-image>
                </div>
            </div>
            <span slot="footer" class="dialog-footer">
                <el-button @click="contactDialogVisible = false" size="small">关 闭</el-button>
            </span>
        </el-dialog>
    </div>
</template>

<script>
export default {
    // 子组件接受父组件传值
    props: ['contactDialogVisible'],
    name: "ContactDialog",
    data() {
        return {
            //contactDialogVisible: true
        }
    },
    methods: {
        closeDialog() {
            this.$emit('close')
        }
    }
}
</script>

<style scoped>

</style>
